import request from '@/utils/request'

export function scheduleAdd(data) {
    return request({
        url: '/schedule/add',
        method: 'post',
        data: data
    })
}

export function scheduleUpdate(data) {
    return request({
        url: '/schedule/update',
        method: 'post',
        data: data
    })
}

export function removeScheduleById(id) {
    return request({
        url: '/schedule/removeById?id=' + id,
        method: 'get'
    })
}

export function scheduleList() {
    return request({
        url: '/schedule/list',
        method: 'get'
    })
}

export function queryScheduleById(id) {
    return request({
        url: '/schedule/queryById?id=' + id,
        method: 'get'
    })
}
